﻿using System;
using System.Windows.Forms;

namespace Narau.WindowsForms
{
    public partial class MainWindow : Form
    {
        public MainWindow()
        {
            InitializeComponent();

            Program.gNarau.m_intf_view = new Narau_WF(flowLayout_Up, flowLayout_Dw, MondaiTree);
            Program.gNarau.LoadData();
        }

        private void EjerciciosTemaSelec_MenuItem(object sender, EventArgs e)
        {
            Program.gNarau.ShikenSuru();
        }

        private void NextMondai_MenuItem(object sender, EventArgs e)
        {
            Program.gNarau.NextMondai();
        }

        private void panel1_Paint(object sender, PaintEventArgs e)
        {

        }

        private void MainWindow_Load(object sender, EventArgs e)
        {

        }

        private void splitContainer1_Panel2_Paint(object sender, PaintEventArgs e)
        {

        }

        private void menuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {

        }

        private void NodePressed(object sender, MouseEventArgs e)
        {
            
        }

        private void TreeView_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            
        }

        private void TreeView_AfterSelect(object sender, TreeViewEventArgs e)
        {
            TreeView tree_view = sender as TreeView;
            if (tree_view != null)
            {
                TreeNode node_selected = tree_view.SelectedNode;
                if (node_selected != null)
                {
                    TreeNode_WF obj_node = node_selected.Tag as TreeNode_WF;
                    if (obj_node != null)
                    {
                        obj_node.OnSelect();
                    }
                }
            }
        }

        private void splitContainer2_SplitterMoved(object sender, SplitterEventArgs e)
        {

        }

        private void splitContainer3_Panel1_Paint(object sender, PaintEventArgs e)
        {

        }

        private void MainflowLayout_Paint(object sender, PaintEventArgs e)
        {

        }

                
    }
}
